<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Attendance/attendance')}">返回</a>
                    </div>
                </blockquote>

                <!-- 表单项 -->
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span class="c-red">*</span>用户姓名</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" class="layui-input" value="{$info.name}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span class="c-red">*</span>考勤工号</label>
                        <div class="layui-input-block">
                            <input type="text" name="pin" class="layui-input" value="{$info.pin}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><span class="c-red">*</span>用户ID</label>
                        <div class="layui-input-block">
                            <input type="text" name="user_id" class="layui-input" value="{$info.user_id}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">剩余年假</label>
                        <div class="layui-input-block">
                            <input type="text" name="able_year" class="layui-input" value="{$info.able_year}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">剩余调休</label>
                        <div class="layui-input-block">
                            <input type="text" name="able_vacation" class="layui-input" value="{$info.able_vacation}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否显示</label>
                        <div class="layui-input-block level">
                            <lable class="input_lable">
                                <input name="is_show" type="radio" id="sex-1" value="1" {$info['is_show'] == 1 ? 'checked' :''}>
                                <label for="sex-1">是</label>
                            </lable>
                            <lable class="input_lable">
                                <input type="radio" id="sex-2" value="0" name="is_show" {$info['is_show'] == 0 ? 'checked' :''}>
                                <label for="sex-2">否</label>
                            </lable>
                        </div>
                    </div>
                   
                    <div class="layui-form-item">
                        <div class="layui-input-block button">
                            <input type='hidden' name='id' value='{$info.id}'>
                            <a class="layui-btn btn-submit ajax-post" data-url="{:U('saveAttendance')}" data-form="">提交</a>
                            <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
                        </div>
                    </div>
                </form>
                <!-- 完 -->
            </div>
        </div>
    </section>
</block>
<block name="script">
    <!--<script type="text/javascript" src="/Public/Admin/js/common.js"></script>-->
    <script type="text/javascript">
    </script>    
</block>
